<template>
	<div style="width: 100%; height: 700px" id="chartsRef"></div>
</template>

<script>
import { option } from "./options";
import * as echarts from "echarts";
import lc from "./lc.json";
export default {
	components: {},
	data() {
		return {};
	},
	mounted() {
		echarts.registerMap("lc", { geoJSON: lc });
		let myChart = echarts.init(document.getElementById("chartsRef"));
		// 绘制图表
		myChart.setOption(option);
	},
	methods: {},
};
</script>

<style lang="scss" scoped></style>
